Removing role functionality on audit user page#108
Removing role functionality on audit user page#108jacobo-dominguez-wgu merged 11 commits intoopenedx:masterfrom
Conversation
|
Thanks for the pull request, @jacobo-dominguez-wgu! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. DetailsWhere can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
dd14b5c to
5ae6534
Compare
5ae6534 to
4588bfb
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #108 +/- ##
==========================================
+ Coverage 95.70% 95.88% +0.17%
==========================================
Files 69 70 +1
Lines 1536 1602 +66
Branches 321 341 +20
==========================================
+ Hits 1470 1536 +66
Misses 64 64
Partials 2 2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
This depends on #106, so I'm converting to draft. |
be1e23b to
e9e0bfc
Compare
|
@dcoa This one is now ready for review, could you take a look? |
dcoa
left a comment
There was a problem hiding this comment.
This is a very light review so I can not approve
rodmgwgu
left a comment
There was a problem hiding this comment.
Tested in my local, functionality works fine, just found an issue that may not be directly related to this PR:
After removing a role from a user, and navigating back to the Team Members page using the link in the breadcrumbs, the user still appeared there (did not reload the data on the Team Members page), perhaps we should invalidate that data on role removal.
ab684c8 to
ea8d911
Compare
Thanks for testing it. I have fixed this issue in the latest commit! |
ea8d911 to
b5f07c3
Compare
rodmgwgu
left a comment
There was a problem hiding this comment.
Tested it again and all is working correctly, just added some nit comments. Thanks!
b5f07c3 to
638c8e2
Compare
rodmgwgu
left a comment
There was a problem hiding this comment.
Looks good, thanks for addressing my comments!
638c8e2 to
1ef2f95
Compare
1ef2f95 to
8d11260
Compare
|
Will wait a bit before merging it. |
Description
Adding the delete role functionality to the roles table on audit user view.
The table shows a different remove button icon depending on:
It closes #89
Figma design
Pending things:
Unit testing.✅Integration with API when is ready.✅A couple of TODOs.✅Warning
Will be on draft status until the required endpoints are completed.This PR requires some the endpoints proposed in the section
"Proposed Endpoint for M2"How to test it
Pre - requisites
A running local tutor instance.
It requires the endpoint created on this PR openedx/openedx-authz#230 to fetch the table data
1 - Go to the new audit user page -> http://apps.local.openedx.io:2025/admin-console/authz/user/:username (select a user with many roles assigned to get a more populated table) (NOTE: The team members table will redirect to this page, currently in progress #124)
2 - Verify the actions icon button shows according the described scenarios:
3 - Click on the trash icon and must appear a confirmation modal.
4 - Confirm the removal, the modal gets closed, a toast shows success message and the entry row gets removed from the table.